package org.jeecg.modules.demo.huibaozhibiaodaibanbiao.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class DataGenerateTask {
    @Autowired
    private IHuibaozhibiaodaibanbiaoService huibaozhibiaodaibanbiaoService;

    @Scheduled(cron = "0 0 2 20 * ?")
    public void DataGenerator(){
        System.out.println("定时任务开始执行");
        huibaozhibiaodaibanbiaoService.TimedDataGenerator();
        System.out.println("定时任务执行了");
    }
}
